#region Namespaces

using System;

#endregion

namespace Vibstudio.X4NET.Xml.Linq
{
    public class XObjectChangeEventArgs : EventArgs
    {
        public static readonly XObjectChangeEventArgs Add = new XObjectChangeEventArgs(XObjectChange.Add);

        public static readonly XObjectChangeEventArgs Name = new XObjectChangeEventArgs(XObjectChange.Name);

        public static readonly XObjectChangeEventArgs Remove = new XObjectChangeEventArgs(XObjectChange.Remove);

        public static readonly XObjectChangeEventArgs Value = new XObjectChangeEventArgs(XObjectChange.Value);

        private readonly XObjectChange _type;

        public XObjectChangeEventArgs(XObjectChange objectChange)
        {
            _type = objectChange;
        }

        public XObjectChange ObjectChange
        {
            get { return _type; }
        }
    }
}